<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[group]', $groupdata, null, ['class'=>'form-control selectpicker',
            'data-rule'=>'required'])}
        </div>
    </div> -->
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="username" name="row[username]" value=""
                data-rule="required;username" />
        </div>
    </div>
    <div class="form-group">
        <label for="region_id" class="control-label col-xs-12 col-sm-2">{:__('负责城市')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-region_id" min="0" data-rule="required" data-source="ajax/areaList" data-search-field="name" data-multiple="true" class="form-control selectpage" name="row[region_id]" data-title="name"  type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('城市负责人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" value="" data-rule="mobile" />
        </div>
    </div>
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off" value=""
                data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password"
                value="" data-rule="required;password" />
        </div>
    </div>
    <div class="form-group">
        <label for="total_turnover" class="control-label col-xs-12 col-sm-2">{:__('总营业额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="total_turnover" name="row[total_turnover]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="total_order" class="control-label col-xs-12 col-sm-2">{:__('总订单量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="total_order" name="row[total_order]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="area_num" class="control-label col-xs-12 col-sm-2">{:__('区县数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="area_num" name="row[area_num]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="shop_num" class="control-label col-xs-12 col-sm-2">{:__('门店数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="shop_num" name="row[shop_num]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="stage_num" class="control-label col-xs-12 col-sm-2">{:__('驿站数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="stage_num" name="row[stage_num]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="regional_commission" class="control-label col-xs-12 col-sm-2">{:__('城市公司分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="regional_commission" name="row[regional_commission]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="company_commission" class="control-label col-xs-12 col-sm-2">{:__('区县公司分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="company_commission" name="row[company_commission]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="factory_commission" class="control-label col-xs-12 col-sm-2">{:__('门店分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="factory_commission" name="row[factory_commission]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="shop_commission" class="control-label col-xs-12 col-sm-2">{:__('驿站分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="shop_commission" name="row[shop_commission]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="superior" class="control-label col-xs-12 col-sm-2">{:__('直推分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="superior" name="row[superior]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="total_commission" class="control-label col-xs-12 col-sm-2">{:__('总平台分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="total_commission" name="row[total_commission]" autocomplete="off"
                value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="service_total_commission" class="control-label col-xs-12 col-sm-2">{:__('家政总平台分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="service_total_commission" name="row[service_total_commission]"
                autocomplete="off" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="service_regional_commission" class="control-label col-xs-12 col-sm-2">{:__('家政城市公司分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="service_regional_commission" name="row[service_regional_commission]"
                autocomplete="off" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="service_company_commission" class="control-label col-xs-12 col-sm-2">{:__('家政区县公司分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="service_company_commission" name="row[service_company_commission]"
                autocomplete="off" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="service_factory_commission" class="control-label col-xs-12 col-sm-2">{:__('家政门店分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="service_factory_commission" name="row[service_factory_commission]"
                autocomplete="off" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="service_shop_commission" class="control-label col-xs-12 col-sm-2">{:__('家政驿站分佣(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="service_shop_commission" name="row[service_shop_commission]"
                autocomplete="off" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="urgent_price" class="control-label col-xs-12 col-sm-2">{:__('加急费(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="urgent_price" name="row[urgent_price]"
                autocomplete="off" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="send_price" class="control-label col-xs-12 col-sm-2">{:__('配送费(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="send_price" name="row[send_price]"
                autocomplete="off" value="" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>